﻿using BizControl.Library.BusinessObjects;
using Csla.Xaml;
using BizControl.Presentation.Infrastructure.Controls;
using Microsoft.Practices.Prism.Regions;
using System.ComponentModel.Composition;
using Microsoft.Practices.Prism.Commands;
using Microsoft.Practices.Prism;
using System;
using BizControl.Presentation.Infrastructure.Constants;
using System.Windows.Input;
using BizControl.Library.BusinessObjects.BusinessRoles;

namespace BizControl.Presentation.DataStatistics.ViewModels
{
  [Export]
  public class DataStatisticsViewModel : INavigationAware, IRegionMemberLifetime, IPartImportsSatisfiedNotification
  {
    private IRegionManager _regionManager;

    [ImportingConstructor]
    public DataStatisticsViewModel(IRegionManager regionManager)
    {
      _regionManager = regionManager;
    }

    #region INavigationAware Members

    public bool IsNavigationTarget(NavigationContext navigationContext)
    {
      return true;
    }

    public void OnNavigatedFrom(NavigationContext navigationContext)
    {
    }

    public void OnNavigatedTo(NavigationContext navigationContext)
    {
    }

    #endregion

    #region IRegionMemberLifetime Members

    public bool KeepAlive
    {
      get { return true; }
    }

    #endregion

    #region IPartImportsSatisfiedNotification Members

    public void OnImportsSatisfied()
    {
    }

    #endregion
  }
}
